package com.hao.netty.listener;

import io.netty.channel.ChannelFuture;
import io.netty.channel.ChannelFutureListener;

/**
 * TODO
 *
 * @author 97472
 * @version 1.0
 * @date 2021/11/30 15:26
 */
public class ChannelCloseListener implements ChannelFutureListener {
    public void operationComplete(ChannelFuture channelFuture) throws Exception {
        if (channelFuture.isSuccess()){
            System.out.println(channelFuture.channel().remoteAddress() + "退出了群聊");
        }
    }
}
